<?php

namespace Mql\GeoPoiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Publication
 *
 * @ORM\Table(name="publication", indexes={@ORM\Index(name="fk_Publication_Lieu1_idx", columns={"Lieu_User_id"})})
 * @ORM\Entity(repositoryClass="Mql\GeoPoiBundle\Entity\PublicationRepository")
 */
class Publication
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="titre", type="string", length=45, nullable=true)
     */
    private $titre;

    /**
     * @var string
     *
     * @ORM\Column(name="description", type="string", length=45, nullable=true)
     */
    private $description;

    /**
     * @var string
     *
     * @ORM\Column(name="image", type="blob", nullable=true)
     */
    private $image;

    /**
     * @var string
     *
     * @ORM\Column(name="dateP", type="string", length=45, nullable=true)
     */
    private $datep;

    /**
     * @var string
     *
     * @ORM\Column(name="ärchive", type="string", length=45, nullable=true)
     */
    private $archive;

    /**
     * @var \Lieu
     *
     * @ORM\ManyToOne(targetEntity="Lieu")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="Lieu_User_id", referencedColumnName="id")
     * })
     */
    private $lieuUser;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set titre
     *
     * @param string $titre
     * @return Publication
     */
    public function setTitre($titre)
    {
        $this->titre = $titre;

        return $this;
    }

    /**
     * Get titre
     *
     * @return string 
     */
    public function getTitre()
    {
        return $this->titre;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return Publication
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set image
     *
     * @param string $image
     * @return Publication
     */
    public function setImage($image)
    {
        $this->image = $image;

        return $this;
    }

    /**
     * Get image
     *
     * @return string 
     */
    public function getImage()
    {
        return $this->image;
    }

    /**
     * Set datep
     *
     * @param string $datep
     * @return Publication
     */
    public function setDatep($datep)
    {
        $this->datep = $datep;

        return $this;
    }

    /**
     * Get datep
     *
     * @return string 
     */
    public function getDatep()
    {
        return $this->datep;
    }

    /**
     * Set archive
     *
     * @param string $archive
     * @return Publication
     */
    public function setArchive($archive)
    {
        $this->archive = $archive;

        return $this;
    }

    /**
     * Get archive
     *
     * @return string 
     */
    public function getArchive()
    {
        return $this->archive;
    }

    /**
     * Set lieuUser
     *
     * @param \Mql\GeoPoiBundle\Entity\Lieu $lieuUser
     * @return Publication
     */
    public function setLieuUser(\Mql\GeoPoiBundle\Entity\Lieu $lieuUser = null)
    {
        $this->lieuUser = $lieuUser;

        return $this;
    }

    /**
     * Get lieuUser
     *
     * @return \Mql\GeoPoiBundle\Entity\Lieu 
     */
    public function getLieuUser()
    {
        return $this->lieuUser;
    }
}
